package com.easylinkin.linkappapi.common.utils;

import org.xerial.snappy.Snappy;

import java.io.IOException;
import java.util.Base64;

/**
 * class info :字符串压缩工具类
 *
 * @author liuqihang
 * @date 2021/9/6 18:33
 */
public class CharCompressUtil {

    public static byte[] compress(String sourceBytes) throws IOException {
        byte[] compress = Snappy.compress(sourceBytes);
        return compress;
    }

    public static String compressWrap(String source) throws IOException {
        byte[] sourceBytes = compress(source);
        String compress = new String(Base64.getEncoder().encode(sourceBytes));
        return compress;
    }

    public static String unCompressWrap(String decoceStr) throws IOException {
        byte[] decode = Base64.getDecoder().decode(decoceStr.getBytes());
        return new String(decode(decode));
    }

    public static byte[] decode(byte[] source) throws IOException {
        return Snappy.uncompress(source);
    }


    public static void main(String[] args) throws IOException {
        String content = "[{\"id\":\"cab49fd0156ae31c726a18ff22e7a78d\",\"ruleConditions\":[],\"ruleExecutions\":[{\"delayTime\":3.0,\"linkageConfigRefDownDeviceList\":[{\"deviceCode\":\"YM2220850021\"},{\"deviceCode\":\"YM222085004E\"},{\"deviceCode\":\"YM2220850204\"},{\"deviceCode\":\"YM22208501C0\"},{\"deviceCode\":\"YM2220850007\"},{\"deviceCode\":\"YM2220850039\"},{\"deviceCode\":\"YM222085000D\"},{\"deviceCode\":\"YM22208501C1\"},{\"deviceCode\":\"YM2220850026\"},{\"deviceCode\":\"YM222085003B\"},{\"deviceCode\":\"YM222085037B\"},{\"deviceCode\":\"YM2220850383\"},{\"deviceCode\":\"YM2220850395\"},{\"deviceCode\":\"YM2220850362\"},{\"deviceCode\":\"YM222085033A\"},{\"deviceCode\":\"YM222085036E\"},{\"deviceCode\":\"YM222085037A\"},{\"deviceCode\":\"YM2220850355\"},{\"deviceCode\":\"YM222085036F\"},{\"deviceCode\":\"YM2220850373\"},{\"deviceCode\":\"YM22208503C6\"},{\"deviceCode\":\"YM2220850354\"},{\"deviceCode\":\"YM2220850368\"},{\"deviceCode\":\"YM2220850371\"},{\"deviceCode\":\"YM2220850357\"},{\"deviceCode\":\"YM2220850366\"},{\"deviceCode\":\"YM222085036D\"},{\"deviceCode\":\"YM2220850350\"},{\"deviceCode\":\"YM222085037D\"},{\"deviceCode\":\"YM222085037F\"},{\"deviceCode\":\"YM222085037C\"},{\"deviceCode\":\"YM22208503C1\"},{\"deviceCode\":\"YM2220850378\"},{\"deviceCode\":\"YM222085037E\"},{\"deviceCode\":\"YM222085036A\"},{\"deviceCode\":\"YM222085034B\"},{\"deviceCode\":\"YM2220850367\"},{\"deviceCode\":\"YM2220850379\"},{\"deviceCode\":\"YM2220850211\"},{\"deviceCode\":\"YM2220850216\"},{\"deviceCode\":\"YM2220850320\"},{\"deviceCode\":\"YM222085035E\"},{\"deviceCode\":\"YM22208503CA\"},{\"deviceCode\":\"YM2220850214\"},{\"deviceCode\":\"YM2220850219\"},{\"deviceCode\":\"YM222085035C\"},{\"deviceCode\":\"YM2220850337\"},{\"deviceCode\":\"YM2220850215\"},{\"deviceCode\":\"YM2220850217\"},{\"deviceCode\":\"YM2220850218\"},{\"deviceCode\":\"YM222085021A\"},{\"deviceCode\":\"YM2220850351\"},{\"deviceCode\":\"YM222085021B\"},{\"deviceCode\":\"YM22208503C5\"},{\"deviceCode\":\"YM2220850335\"},{\"deviceCode\":\"YM222085032A\"},{\"deviceCode\":\"YM2220850347\"},{\"deviceCode\":\"YM222085021C\"},{\"deviceCode\":\"YM2220850321\"},{\"deviceCode\":\"YM222085034C\"},{\"deviceCode\":\"YM222085021D\"},{\"deviceCode\":\"YM2220850338\"},{\"deviceCode\":\"YM2220850323\"},{\"deviceCode\":\"YM2220850228\"},{\"deviceCode\":\"YM22208503C7\"},{\"deviceCode\":\"YM2220850229\"},{\"deviceCode\":\"YM222085036B\"},{\"deviceCode\":\"YM2220850353\"},{\"deviceCode\":\"YM2220850332\"},{\"deviceCode\":\"YM2220850227\"},{\"deviceCode\":\"YM2220850210\"},{\"deviceCode\":\"YM2220850226\"},{\"deviceCode\":\"YM2220850345\"},{\"deviceCode\":\"YM2220850225\"},{\"deviceCode\":\"YM2220850360\"},{\"deviceCode\":\"YM22208503C4\"},{\"deviceCode\":\"YM222085021F\"},{\"deviceCode\":\"YM222085035D\"},{\"deviceCode\":\"YM222085022D\"},{\"deviceCode\":\"YM2220850334\"},{\"deviceCode\":\"YM2220850348\"},{\"deviceCode\":\"YM2220850361\"},{\"deviceCode\":\"YM222085021E\"},{\"deviceCode\":\"YM2220850349\"},{\"deviceCode\":\"YM222085022F\"},{\"deviceCode\":\"YM2220850333\"},{\"deviceCode\":\"YM22208503D8\"},{\"deviceCode\":\"YM222085022E\"},{\"deviceCode\":\"YM222085033F\"},{\"deviceCode\":\"YM2220850224\"},{\"deviceCode\":\"YM2220850336\"},{\"deviceCode\":\"YM2220850223\"},{\"deviceCode\":\"YM222085034D\"},{\"deviceCode\":\"YM2220850222\"},{\"deviceCode\":\"YM2220850328\"},{\"deviceCode\":\"YM222085035A\"},{\"deviceCode\":\"YM222085033E\"},{\"deviceCode\":\"YM22208503D3\"},{\"deviceCode\":\"YM222085034E\"},{\"deviceCode\":\"YM22208503CF\"},{\"deviceCode\":\"YM2220850213\"},{\"deviceCode\":\"YM2220850356\"},{\"deviceCode\":\"YM2220850212\"},{\"deviceCode\":\"YM2220850221\"},{\"deviceCode\":\"YM2220850339\"},{\"deviceCode\":\"YM2220850329\"},{\"deviceCode\":\"YM222085034F\"},{\"deviceCode\":\"YM222085033D\"},{\"deviceCode\":\"YM22208503C3\"},{\"deviceCode\":\"YM2220850369\"},{\"deviceCode\":\"YM222085033B\"},{\"deviceCode\":\"YM2220850220\"},{\"deviceCode\":\"YM222085022B\"},{\"deviceCode\":\"YM222085036C\"},{\"deviceCode\":\"YM2220850352\"},{\"deviceCode\":\"YM222085033C\"},{\"deviceCode\":\"YM2220850236\"},{\"deviceCode\":\"YM2220850237\"},{\"deviceCode\":\"YM222085022C\"},{\"deviceCode\":\"YM22208503D9\"},{\"deviceCode\":\"YM222085022A\"},{\"deviceCode\":\"YM2220850232\"},{\"deviceCode\":\"YM222085023D\"},{\"deviceCode\":\"YM22208503CC\"},{\"deviceCode\":\"YM2220850358\"},{\"deviceCode\":\"YM2220850330\"},{\"deviceCode\":\"YM222085032B\"},{\"deviceCode\":\"YM222085035B\"},{\"deviceCode\":\"YM22208503C8\"},{\"deviceCode\":\"YM22208503C9\"},{\"deviceCode\":\"YM22208503D2\"},{\"deviceCode\":\"YM2220850327\"},{\"deviceCode\":\"YM22208503CE\"},{\"deviceCode\":\"YM222085032E\"},{\"deviceCode\":\"YM2220850340\"},{\"deviceCode\":\"YM2220850325\"},{\"deviceCode\":\"YM222085023B\"},{\"deviceCode\":\"YM2220850343\"},{\"deviceCode\":\"YM2220850239\"},{\"deviceCode\":\"YM22208503CB\"},{\"deviceCode\":\"YM2220850322\"},{\"deviceCode\":\"YM22208503DC\"},{\"deviceCode\":\"YM222085023F\"},{\"deviceCode\":\"YM2220850235\"},{\"deviceCode\":\"YM22208503CD\"},{\"deviceCode\":\"YM2220850234\"},{\"deviceCode\":\"YM2220850324\"},{\"deviceCode\":\"YM2220850233\"},{\"deviceCode\":\"YM222085032C\"},{\"deviceCode\":\"YM2220850231\"},{\"deviceCode\":\"YM22208503C2\"},{\"deviceCode\":\"YM2220850326\"},{\"deviceCode\":\"YM22208503BE\"},{\"deviceCode\":\"YM2220850344\"},{\"deviceCode\":\"YM2220850238\"},{\"deviceCode\":\"YM222085035F\"},{\"deviceCode\":\"YM222085024E\"},{\"deviceCode\":\"YM222085024C\"},{\"deviceCode\":\"YM222085034A\"},{\"deviceCode\":\"YM2220850248\"},{\"deviceCode\":\"YM22208503D5\"},{\"deviceCode\":\"YM2220850245\"},{\"deviceCode\":\"YM2220850249\"},{\"deviceCode\":\"YM22208503DA\"},{\"deviceCode\":\"YM222085024D\"},{\"deviceCode\":\"YM2220850331\"},{\"deviceCode\":\"YM2220850346\"},{\"deviceCode\":\"YM2220850240\"},{\"deviceCode\":\"YM222085032F\"},{\"deviceCode\":\"YM222085023E\"},{\"deviceCode\":\"YM2220850342\"},{\"deviceCode\":\"YM222085032D\"},{\"deviceCode\":\"YM2220850247\"},{\"deviceCode\":\"YM222085025D\"},{\"deviceCode\":\"YM22208503BC\"},{\"deviceCode\":\"YM222085023C\"},{\"deviceCode\":\"YM2220850359\"},{\"deviceCode\":\"YM2220850244\"},{\"deviceCode\":\"YM2220850252\"},{\"deviceCode\":\"YM222085023A\"},{\"deviceCode\":\"YM2220850253\"},{\"deviceCode\":\"YM2220850230\"},{\"deviceCode\":\"YM2220850251\"},{\"deviceCode\":\"YM2220850250\"},{\"deviceCode\":\"YM2220850243\"},{\"deviceCode\":\"YM22208503DB\"},{\"deviceCode\":\"YM2220850246\"},{\"deviceCode\":\"YM222085024F\"},{\"deviceCode\":\"YM2220850269\"},{\"deviceCode\":\"YM222085026A\"},{\"deviceCode\":\"YM222085026F\"},{\"deviceCode\":\"YM222085026E\"},{\"deviceCode\":\"YM2220850265\"},{\"deviceCode\":\"YM2220850268\"},{\"deviceCode\":\"YM2220850264\"},{\"deviceCode\":\"YM2220850262\"},{\"deviceCode\":\"YM22208503C0\"},{\"deviceCode\":\"YM222085024A\"},{\"deviceCode\":\"YM2220850261\"},{\"deviceCode\":\"YM222085025C\"},{\"deviceCode\":\"YM2220850260\"},{\"deviceCode\":\"YM222085025A\"},{\"deviceCode\":\"YM2220850266\"},{\"deviceCode\":\"YM2220850254\"},{\"deviceCode\":\"YM2220850256\"},{\"deviceCode\":\"YM2220850259\"},{\"deviceCode\":\"YM222085026D\"},{\"deviceCode\":\"YM22208503D7\"},{\"deviceCode\":\"YM222085025F\"},{\"deviceCode\":\"YM222085026B\"},{\"deviceCode\":\"YM222085026C\"},{\"deviceCode\":\"YM222085024B\"},{\"deviceCode\":\"YM2220850267\"},{\"deviceCode\":\"YM2220850241\"},{\"deviceCode\":\"YM2220850242\"},{\"deviceCode\":\"YM2220850263\"},{\"deviceCode\":\"YM2220850273\"},{\"deviceCode\":\"YM2220850258\"},{\"deviceCode\":\"YM22208503BF\"},{\"deviceCode\":\"YM222085025E\"},{\"deviceCode\":\"YM2220850275\"},{\"deviceCode\":\"YM2220850274\"},{\"deviceCode\":\"YM222085025B\"},{\"deviceCode\":\"YM2220850257\"},{\"deviceCode\":\"YM2220850255\"},{\"deviceCode\":\"YM2220850271\"},{\"deviceCode\":\"YM2220850272\"},{\"deviceCode\":\"YM2220850270\"},{\"deviceCode\":\"YM22208502DF\"},{\"deviceCode\":\"YM22208503D6\"},{\"deviceCode\":\"YM22208502DE\"},{\"deviceCode\":\"YM22208502DD\"},{\"deviceCode\":\"YM22208502DA\"},{\"deviceCode\":\"YM22208502DC\"},{\"deviceCode\":\"YM22208502DB\"},{\"deviceCode\":\"YM22208502D9\"},{\"deviceCode\":\"YM22208502D8\"},{\"deviceCode\":\"YM22208502D7\"},{\"deviceCode\":\"YM22208502D6\"},{\"deviceCode\":\"YM22208502D5\"},{\"deviceCode\":\"YM22208503D4\"},{\"deviceCode\":\"YM22208502D4\"},{\"deviceCode\":\"YM22208502D1\"},{\"deviceCode\":\"YM22208502D2\"},{\"deviceCode\":\"YM22208502D3\"},{\"deviceCode\":\"YM22208502FF\"},{\"deviceCode\":\"YM22208502FD\"},{\"deviceCode\":\"YM22208502FC\"},{\"deviceCode\":\"YM22208502FB\"},{\"deviceCode\":\"YM22208502FA\"},{\"deviceCode\":\"YM22208502FE\"},{\"deviceCode\":\"YM22208503BD\"},{\"deviceCode\":\"YM22208502F9\"},{\"deviceCode\":\"YM22208502F8\"},{\"deviceCode\":\"YM22208502EC\"},{\"deviceCode\":\"YM22208502F7\"},{\"deviceCode\":\"YM22208502E5\"},{\"deviceCode\":\"YM22208502E3\"},{\"deviceCode\":\"YM22208502F6\"},{\"deviceCode\":\"YM22208502E4\"},{\"deviceCode\":\"YM22208502F5\"},{\"deviceCode\":\"YM22208502E2\"},{\"deviceCode\":\"YM22208503AD\"},{\"deviceCode\":\"YM22208502E9\"},{\"deviceCode\":\"YM22208502E0\"},{\"deviceCode\":\"YM22208502EB\"},{\"deviceCode\":\"YM22208502EE\"},{\"deviceCode\":\"YM22208502F2\"},{\"deviceCode\":\"YM22208502EA\"},{\"deviceCode\":\"YM22208502EF\"},{\"deviceCode\":\"YM22208502F0\"},{\"deviceCode\":\"YM22208502F3\"},{\"deviceCode\":\"YM22208502F4\"},{\"deviceCode\":\"YM22208503AC\"},{\"deviceCode\":\"YM22208502F1\"},{\"deviceCode\":\"YM22208502E6\"},{\"deviceCode\":\"YM22208502E8\"},{\"deviceCode\":\"YM22208502E7\"},{\"deviceCode\":\"YM22208502E1\"},{\"deviceCode\":\"YM22208502ED\"},{\"deviceCode\":\"YM2220850310\"},{\"deviceCode\":\"YM2220850312\"},{\"deviceCode\":\"YM2220850313\"},{\"deviceCode\":\"YM2220850314\"},{\"deviceCode\":\"YM22208503B7\"},{\"deviceCode\":\"YM222085030D\"},{\"deviceCode\":\"YM222085030C\"},{\"deviceCode\":\"YM2220850319\"},{\"deviceCode\":\"YM2220850300\"},{\"deviceCode\":\"YM2220850301\"},{\"deviceCode\":\"YM2220850307\"},{\"deviceCode\":\"YM222085027E\"},{\"deviceCode\":\"YM222085031C\"},{\"deviceCode\":\"YM222085029F\"},{\"deviceCode\":\"YM222085030F\"},{\"deviceCode\":\"YM22208503B5\"},{\"deviceCode\":\"YM222085031E\"},{\"deviceCode\":\"YM2220850304\"},{\"deviceCode\":\"YM2220850302\"},{\"deviceCode\":\"YM222085030B\"},{\"deviceCode\":\"YM222085029E\"},{\"deviceCode\":\"YM2220850311\"},{\"deviceCode\":\"YM222085030E\"},{\"deviceCode\":\"YM222085031F\"},{\"deviceCode\":\"YM2220850305\"},{\"deviceCode\":\"YM2220850316\"},{\"deviceCode\":\"YM22208503B9\"},{\"deviceCode\":\"YM2220850318\"},{\"deviceCode\":\"YM222085029B\"},{\"deviceCode\":\"YM2220850303\"},{\"deviceCode\":\"YM2220850317\"},{\"deviceCode\":\"YM2220850315\"},{\"deviceCode\":\"YM222085029A\"},{\"deviceCode\":\"YM222085029C\"},{\"deviceCode\":\"YM2220850279\"},{\"deviceCode\":\"YM222085029D\"},{\"deviceCode\":\"YM222085027A\"},{\"deviceCode\":\"YM22208503B2\"},{\"deviceCode\":\"YM222085031B\"},{\"deviceCode\":\"YM222085027B\"},{\"deviceCode\":\"YM222085027F\"},{\"deviceCode\":\"YM222085027D\"},{\"deviceCode\":\"YM222085027C\"},{\"deviceCode\":\"YM222085031D\"},{\"deviceCode\":\"YM2220850298\"},{\"deviceCode\":\"YM2220850309\"},{\"deviceCode\":\"YM2220850281\"},{\"deviceCode\":\"YM222085030A\"},{\"deviceCode\":\"YM22208503AE\"},{\"deviceCode\":\"YM2220850297\"},{\"deviceCode\":\"YM2220850306\"},{\"deviceCode\":\"YM2220850299\"},{\"deviceCode\":\"YM2220850282\"},{\"deviceCode\":\"YM2220850296\"},{\"deviceCode\":\"YM2220850280\"},{\"deviceCode\":\"YM2220850278\"},{\"deviceCode\":\"YM222085031A\"},{\"deviceCode\":\"YM2220850295\"},{\"deviceCode\":\"YM2220850277\"},{\"deviceCode\":\"YM22208503AF\"},{\"deviceCode\":\"YM222085028F\"},{\"deviceCode\":\"YM2220850308\"},{\"deviceCode\":\"YM222085028C\"},{\"deviceCode\":\"YM2220850289\"},{\"deviceCode\":\"YM222085028B\"},{\"deviceCode\":\"YM2220850288\"},{\"deviceCode\":\"YM222085028A\"},{\"deviceCode\":\"YM2220850284\"},{\"deviceCode\":\"YM2220850283\"},{\"deviceCode\":\"YM2220850294\"},{\"deviceCode\":\"YM22208503BA\"},{\"deviceCode\":\"YM2220850293\"},{\"deviceCode\":\"YM2220850285\"},{\"deviceCode\":\"YM2220850287\"},{\"deviceCode\":\"YM22208502A0\"},{\"deviceCode\":\"YM2220850286\"},{\"deviceCode\":\"YM22208502A2\"},{\"deviceCode\":\"YM22208502A1\"},{\"deviceCode\":\"YM2220850290\"},{\"deviceCode\":\"YM2220850291\"},{\"deviceCode\":\"YM2220850292\"},{\"deviceCode\":\"YM22208503BB\"},{\"deviceCode\":\"YM222085028D\"},{\"deviceCode\":\"YM222085028E\"},{\"deviceCode\":\"YM22208502A5\"},{\"deviceCode\":\"YM22208502A3\"},{\"deviceCode\":\"YM22208502A4\"},{\"deviceCode\":\"YM22208502B1\"},{\"deviceCode\":\"YM22208502B0\"},{\"deviceCode\":\"YM22208502B2\"},{\"deviceCode\":\"YM22208502B5\"},{\"deviceCode\":\"YM22208502B6\"},{\"deviceCode\":\"YM22208503A7\"},{\"deviceCode\":\"YM22208502AE\"},{\"deviceCode\":\"YM22208502AD\"},{\"deviceCode\":\"YM22208502A9\"},{\"deviceCode\":\"YM22208502A8\"},{\"deviceCode\":\"YM22208502A6\"},{\"deviceCode\":\"YM22208502A7\"},{\"deviceCode\":\"YM22208502BB\"},{\"deviceCode\":\"YM22208502BE\"},{\"deviceCode\":\"YM22208502BD\"},{\"deviceCode\":\"YM22208502BA\"},{\"deviceCode\":\"YM22208503A5\"},{\"deviceCode\":\"YM22208502BC\"},{\"deviceCode\":\"YM22208502B9\"},{\"deviceCode\":\"YM22208502AF\"},{\"deviceCode\":\"YM22208502AC\"},{\"deviceCode\":\"YM22208502AB\"},{\"deviceCode\":\"YM22208502B8\"},{\"deviceCode\":\"YM22208502AA\"},{\"deviceCode\":\"YM22208502BF\"},{\"deviceCode\":\"YM22208502B4\"},{\"deviceCode\":\"YM22208502B7\"},{\"deviceCode\":\"YM22208503A8\"},{\"deviceCode\":\"YM22208502B3\"},{\"deviceCode\":\"YM22208502C2\"},{\"deviceCode\":\"YM22208502C6\"},{\"deviceCode\":\"YM22208502CC\"},{\"deviceCode\":\"YM22208502C1\"},{\"deviceCode\":\"YM22208502C0\"},{\"deviceCode\":\"YM22208502C8\"},{\"deviceCode\":\"YM22208502C3\"},{\"deviceCode\":\"YM22208502C4\"},{\"deviceCode\":\"YM22208502CD\"},{\"deviceCode\":\"YM22208503B6\"},{\"deviceCode\":\"YM22208502CF\"},{\"deviceCode\":\"YM22208502C7\"},{\"deviceCode\":\"YM22208502C5\"},{\"deviceCode\":\"YM22208502CE\"},{\"deviceCode\":\"YM22208502CB\"},{\"deviceCode\":\"YM22208502C9\"},{\"deviceCode\":\"YM22208502CA\"},{\"deviceCode\":\"YM22208501C9\"},{\"deviceCode\":\"YM22208501C8\"},{\"deviceCode\":\"YM22208501C7\"},{\"deviceCode\":\"YM22208503B3\"},{\"deviceCode\":\"YM22208501C6\"},{\"deviceCode\":\"YM22208501D0\"},{\"deviceCode\":\"YM22208501D1\"},{\"deviceCode\":\"YM22208501D2\"},{\"deviceCode\":\"YM22208501DF\"},{\"deviceCode\":\"YM22208501DE\"},{\"deviceCode\":\"YM22208501DD\"},{\"deviceCode\":\"YM22208501C4\"},{\"deviceCode\":\"YM22208501CA\"},{\"deviceCode\":\"YM22208501CD\"},{\"deviceCode\":\"YM22208503B1\"},{\"deviceCode\":\"YM22208501C5\"},{\"deviceCode\":\"YM22208501CF\"},{\"deviceCode\":\"YM22208501CE\"},{\"deviceCode\":\"YM22208501CB\"},{\"deviceCode\":\"YM22208501D9\"},{\"deviceCode\":\"YM22208501D8\"},{\"deviceCode\":\"YM22208501CC\"},{\"deviceCode\":\"YM22208501D7\"},{\"deviceCode\":\"YM22208501DC\"},{\"deviceCode\":\"YM22208501DB\"},{\"deviceCode\":\"YM22208503A6\"},{\"deviceCode\":\"YM22208501DA\"},{\"deviceCode\":\"YM22208501D5\"},{\"deviceCode\":\"YM22208501D6\"},{\"deviceCode\":\"YM22208501D3\"},{\"deviceCode\":\"YM22208501D4\"},{\"deviceCode\":\"YM22208501E5\"},{\"deviceCode\":\"YM22208501E4\"},{\"deviceCode\":\"YM22208501E6\"},{\"deviceCode\":\"YM22208501E3\"},{\"deviceCode\":\"YM22208501E1\"},{\"deviceCode\":\"YM22208503A9\"},{\"deviceCode\":\"YM22208501E0\"},{\"deviceCode\":\"YM22208501E8\"},{\"deviceCode\":\"YM22208501EC\"},{\"deviceCode\":\"YM22208501EB\"},{\"deviceCode\":\"YM22208501E2\"},{\"deviceCode\":\"YM22208501EA\"},{\"deviceCode\":\"YM22208501EF\"},{\"deviceCode\":\"YM22208501E9\"},{\"deviceCode\":\"YM22208501E7\"},{\"deviceCode\":\"YM22208501EE\"},{\"deviceCode\":\"YM22208503B4\"},{\"deviceCode\":\"YM22208501ED\"},{\"deviceCode\":\"YM22208501F2\"},{\"deviceCode\":\"YM22208501F0\"},{\"deviceCode\":\"YM22208501F1\"},{\"deviceCode\":\"YM22208501F3\"},{\"deviceCode\":\"YM22208501F6\"},{\"deviceCode\":\"YM22208501F4\"},{\"deviceCode\":\"YM22208501F5\"},{\"deviceCode\":\"YM22208501F9\"},{\"deviceCode\":\"YM22208501F8\"},{\"deviceCode\":\"YM22208503B8\"},{\"deviceCode\":\"YM22208501F7\"},{\"deviceCode\":\"YM22208501FC\"},{\"deviceCode\":\"YM22208501FA\"},{\"deviceCode\":\"YM22208501FB\"},{\"deviceCode\":\"YM22208501FF\"},{\"deviceCode\":\"YM22208501FD\"},{\"deviceCode\":\"YM22208501FE\"},{\"deviceCode\":\"YM2220850172\"},{\"deviceCode\":\"YM222085017A\"},{\"deviceCode\":\"YM2220850180\"},{\"deviceCode\":\"YM22208503AA\"},{\"deviceCode\":\"YM2220850183\"},{\"deviceCode\":\"YM2220850171\"},{\"deviceCode\":\"YM2220850173\"},{\"deviceCode\":\"YM222085016C\"},{\"deviceCode\":\"YM222085017C\"},{\"deviceCode\":\"YM2220850178\"},{\"deviceCode\":\"YM2220850170\"},{\"deviceCode\":\"YM2220850189\"},{\"deviceCode\":\"YM2220850188\"},{\"deviceCode\":\"YM222085018B\"},{\"deviceCode\":\"YM22208503AB\"},{\"deviceCode\":\"YM222085018A\"},{\"deviceCode\":\"YM222085017B\"},{\"deviceCode\":\"YM222085018D\"},{\"deviceCode\":\"YM222085016F\"},{\"deviceCode\":\"YM2220850187\"},{\"deviceCode\":\"YM2220850186\"},{\"deviceCode\":\"YM222085019E\"},{\"deviceCode\":\"YM222085019D\"},{\"deviceCode\":\"YM2220850177\"},{\"deviceCode\":\"YM222085019C\"},{\"deviceCode\":\"YM222085039E\"},{\"deviceCode\":\"YM222085018E\"},{\"deviceCode\":\"YM2220850196\"},{\"deviceCode\":\"YM222085019B\"},{\"deviceCode\":\"YM2220850194\"},{\"deviceCode\":\"YM2220850193\"},{\"deviceCode\":\"YM2220850197\"},{\"deviceCode\":\"YM222085019F\"},{\"deviceCode\":\"YM2220850185\"},{\"deviceCode\":\"YM2220850182\"},{\"deviceCode\":\"YM2220850184\"},{\"deviceCode\":\"YM222085038A\"},{\"deviceCode\":\"YM222085017F\"},{\"deviceCode\":\"YM222085016D\"},{\"deviceCode\":\"YM222085017D\"},{\"deviceCode\":\"YM222085016B\"},{\"deviceCode\":\"YM2220850181\"},{\"deviceCode\":\"YM222085019A\"},{\"deviceCode\":\"YM222085017E\"},{\"deviceCode\":\"YM222085016E\"},{\"deviceCode\":\"YM2220850199\"},{\"deviceCode\":\"YM2220850198\"},{\"deviceCode\":\"YM22208503A1\"},{\"deviceCode\":\"YM222085016A\"},{\"deviceCode\":\"YM2220850179\"},{\"deviceCode\":\"YM2220850195\"},{\"deviceCode\":\"YM22208501A4\"},{\"deviceCode\":\"YM22208501A2\"},{\"deviceCode\":\"YM22208501A0\"},{\"deviceCode\":\"YM22208501A3\"},{\"deviceCode\":\"YM2220850168\"},{\"deviceCode\":\"YM2220850174\"},{\"deviceCode\":\"YM2220850169\"},{\"deviceCode\":\"YM222085038C\"},{\"deviceCode\":\"YM2220850190\"},{\"deviceCode\":\"YM22208501A5\"},{\"deviceCode\":\"YM22208501A1\"},{\"deviceCode\":\"YM2220850175\"},{\"deviceCode\":\"YM22208501A8\"},{\"deviceCode\":\"YM2220850191\"},{\"deviceCode\":\"YM2220850166\"},{\"deviceCode\":\"YM2220850192\"},{\"deviceCode\":\"YM2220850165\"},{\"deviceCode\":\"YM2220850164\"},{\"deviceCode\":\"YM22208503B0\"},{\"deviceCode\":\"YM22208501A6\"},{\"deviceCode\":\"YM222085018F\"},{\"deviceCode\":\"YM22208501B5\"},{\"deviceCode\":\"YM2220850167\"},{\"deviceCode\":\"YM22208501B3\"},{\"deviceCode\":\"YM22208501B6\"},{\"deviceCode\":\"YM222085018C\"},{\"deviceCode\":\"YM22208501A7\"},{\"deviceCode\":\"YM2220850176\"},{\"deviceCode\":\"YM2220850162\"},{\"deviceCode\":\"YM22208503A4\"},{\"deviceCode\":\"YM2220850163\"},{\"deviceCode\":\"YM2220850160\"},{\"deviceCode\":\"YM2220850161\"},{\"deviceCode\":\"YM22208501B2\"},{\"deviceCode\":\"YM22208501AF\"},{\"deviceCode\":\"YM22208501AE\"},{\"deviceCode\":\"YM22208501AD\"},{\"deviceCode\":\"YM22208501BA\"},{\"deviceCode\":\"YM22208501B7\"},{\"deviceCode\":\"YM22208501B8\"},{\"deviceCode\":\"YM22208503A0\"},{\"deviceCode\":\"YM22208501BB\"},{\"deviceCode\":\"YM22208501AB\"},{\"deviceCode\":\"YM22208501AA\"},{\"deviceCode\":\"YM22208501A9\"},{\"deviceCode\":\"YM22208501AC\"},{\"deviceCode\":\"YM22208501BC\"},{\"deviceCode\":\"YM22208501BE\"},{\"deviceCode\":\"YM22208501B9\"},{\"deviceCode\":\"YM22208501BD\"},{\"deviceCode\":\"YM22208501B4\"},{\"deviceCode\":\"YM2220850386\"},{\"deviceCode\":\"YM22208501BF\"},{\"deviceCode\":\"YM22208501B1\"},{\"deviceCode\":\"YM22208501B0\"},{\"deviceCode\":\"YM22208500F7\"},{\"deviceCode\":\"YM22208500F3\"},{\"deviceCode\":\"YM22208500F2\"},{\"deviceCode\":\"YM22208500F1\"},{\"deviceCode\":\"YM22208500FB\"},{\"deviceCode\":\"YM22208500F8\"},{\"deviceCode\":\"YM22208500FC\"},{\"deviceCode\":\"YM22208503A3\"},{\"deviceCode\":\"YM22208500FE\"},{\"deviceCode\":\"YM22208500F6\"},{\"deviceCode\":\"YM22208500FA\"},{\"deviceCode\":\"YM22208500F4\"},{\"deviceCode\":\"YM2220850102\"},{\"deviceCode\":\"YM2220850104\"},{\"deviceCode\":\"YM22208500FD\"},{\"deviceCode\":\"YM222085010D\"},{\"deviceCode\":\"YM222085010E\"},{\"deviceCode\":\"YM222085010A\"},{\"deviceCode\":\"YM22208503A2\"},{\"deviceCode\":\"YM222085010C\"},{\"deviceCode\":\"YM222085010F\"},{\"deviceCode\":\"YM222085010B\"},{\"deviceCode\":\"YM2220850109\"},{\"deviceCode\":\"YM2220850108\"},{\"deviceCode\":\"YM2220850107\"},{\"deviceCode\":\"YM2220850106\"},{\"deviceCode\":\"YM2220850105\"},{\"deviceCode\":\"YM2220850103\"},{\"deviceCode\":\"YM2220850100\"},{\"deviceCode\":\"YM2220850387\"},{\"deviceCode\":\"YM2220850112\"},{\"deviceCode\":\"YM2220850119\"},{\"deviceCode\":\"YM2220850111\"},{\"deviceCode\":\"YM2220850115\"},{\"deviceCode\":\"YM2220850114\"},{\"deviceCode\":\"YM2220850110\"},{\"deviceCode\":\"YM2220850118\"},{\"deviceCode\":\"YM2220850113\"},{\"deviceCode\":\"YM2220850117\"},{\"deviceCode\":\"YM2220850116\"},{\"deviceCode\":\"YM222085039B\"},{\"deviceCode\":\"YM222085011A\"},{\"deviceCode\":\"YM222085011E\"},{\"deviceCode\":\"YM222085011D\"},{\"deviceCode\":\"YM222085011F\"},{\"deviceCode\":\"YM2220850120\"},{\"deviceCode\":\"YM222085011B\"},{\"deviceCode\":\"YM222085011C\"},{\"deviceCode\":\"YM2220850122\"},{\"deviceCode\":\"YM2220850124\"},{\"deviceCode\":\"YM2220850121\"},{\"deviceCode\":\"YM222085038B\"},{\"deviceCode\":\"YM2220850125\"},{\"deviceCode\":\"YM2220850123\"},{\"deviceCode\":\"YM2220850126\"},{\"deviceCode\":\"YM2220850128\"},{\"deviceCode\":\"YM2220850127\"},{\"deviceCode\":\"YM222085012A\"},{\"deviceCode\":\"YM2220850129\"},{\"deviceCode\":\"YM222085012B\"},{\"deviceCode\":\"YM222085012C\"},{\"deviceCode\":\"YM222085012D\"},{\"deviceCode\":\"YM222085039C\"},{\"deviceCode\":\"YM222085012E\"},{\"deviceCode\":\"YM222085012F\"},{\"deviceCode\":\"YM2220850139\"},{\"deviceCode\":\"YM2220850137\"},{\"deviceCode\":\"YM222085013B\"},{\"deviceCode\":\"YM2220850138\"},{\"deviceCode\":\"YM2220850135\"},{\"deviceCode\":\"YM2220850134\"},{\"deviceCode\":\"YM2220850133\"},{\"deviceCode\":\"YM222085013A\"},{\"deviceCode\":\"YM2220850391\"},{\"deviceCode\":\"YM2220850136\"},{\"deviceCode\":\"YM2220850132\"},{\"deviceCode\":\"YM2220850149\"},{\"deviceCode\":\"YM2220850131\"},{\"deviceCode\":\"YM2220850130\"},{\"deviceCode\":\"YM222085013F\"},{\"deviceCode\":\"YM222085013E\"},{\"deviceCode\":\"YM222085013D\"},{\"deviceCode\":\"YM222085013C\"},{\"deviceCode\":\"YM222085014B\"},{\"deviceCode\":\"YM222085038F\"},{\"deviceCode\":\"YM2220850148\"},{\"deviceCode\":\"YM222085014F\"},{\"deviceCode\":\"YM222085014C\"},{\"deviceCode\":\"YM2220850140\"},{\"deviceCode\":\"YM222085014D\"},{\"deviceCode\":\"YM2220850141\"},{\"deviceCode\":\"YM2220850150\"},{\"deviceCode\":\"YM2220850155\"},{\"deviceCode\":\"YM2220850152\"},{\"deviceCode\":\"YM2220850142\"},{\"deviceCode\":\"YM222085039A\"},{\"deviceCode\":\"YM222085014E\"},{\"deviceCode\":\"YM2220850154\"},{\"deviceCode\":\"YM2220850145\"},{\"deviceCode\":\"YM2220850143\"},{\"deviceCode\":\"YM2220850147\"},{\"deviceCode\":\"YM2220850153\"},{\"deviceCode\":\"YM2220850151\"},{\"deviceCode\":\"YM2220850157\"},{\"deviceCode\":\"YM2220850156\"},{\"deviceCode\":\"YM2220850159\"},{\"deviceCode\":\"YM222085039D\"},{\"deviceCode\":\"YM2220850146\"},{\"deviceCode\":\"YM2220850002\"},{\"deviceCode\":\"YM2220850205\"},{\"deviceCode\":\"YM2220850341\"},{\"deviceCode\":\"YM2220850202\"},{\"deviceCode\":\"YM222085002B\"},{\"deviceCode\":\"YM2220850004\"},{\"deviceCode\":\"YM2220850207\"},{\"deviceCode\":\"YM222085020B\"},{\"deviceCode\":\"YM222085015F\"},{\"deviceCode\":\"YM2220850388\"},{\"deviceCode\":\"YM2220850201\"},{\"deviceCode\":\"YM2220850008\"},{\"deviceCode\":\"YM222085000A\"},{\"deviceCode\":\"YM222085015A\"},{\"deviceCode\":\"YM222085000B\"},{\"deviceCode\":\"YM2220850276\"},{\"deviceCode\":\"YM222085015D\"},{\"deviceCode\":\"YM222085002D\"},{\"deviceCode\":\"YM2220850029\"},{\"deviceCode\":\"YM2220850003\"},{\"deviceCode\":\"YM2220850385\"},{\"deviceCode\":\"YM2220850208\"},{\"deviceCode\":\"YM2220850209\"},{\"deviceCode\":\"YM2220850144\"},{\"deviceCode\":\"YM222085015E\"},{\"deviceCode\":\"YM222085000E\"},{\"deviceCode\":\"YM2220850006\"},{\"deviceCode\":\"YM2220850011\"},{\"deviceCode\":\"YM2220850005\"},{\"deviceCode\":\"YM2220850158\"},{\"deviceCode\":\"YM222085014A\"},{\"deviceCode\":\"YM222085038E\"},{\"deviceCode\":\"YM222085000C\"},{\"deviceCode\":\"YM2220850033\"},{\"deviceCode\":\"YM2220850017\"},{\"deviceCode\":\"YM222085002C\"},{\"deviceCode\":\"YM2220850013\"},{\"deviceCode\":\"YM222085002A\"},{\"deviceCode\":\"YM2220850028\"},{\"deviceCode\":\"YM2220850009\"},{\"deviceCode\":\"YM2220850025\"},{\"deviceCode\":\"YM2220850027\"},{\"deviceCode\":\"YM2220850397\"},{\"deviceCode\":\"YM2220850012\"},{\"deviceCode\":\"YM2220850034\"},{\"deviceCode\":\"YM2220850032\"},{\"deviceCode\":\"YM2220850035\"},{\"deviceCode\":\"YM2220850020\"},{\"deviceCode\":\"YM2220850001\"},{\"deviceCode\":\"YM222085001D\"},{\"deviceCode\":\"YM2220850010\"},{\"deviceCode\":\"YM222085001F\"},{\"deviceCode\":\"YM222085001E\"},{\"deviceCode\":\"YM222085038D\"},{\"deviceCode\":\"YM2220850016\"},{\"deviceCode\":\"YM222085015B\"},{\"deviceCode\":\"YM222085020A\"},{\"deviceCode\":\"YM222085015C\"},{\"deviceCode\":\"YM222085020F\"},{\"deviceCode\":\"YM222085020E\"},{\"deviceCode\":\"YM222085020D\"},{\"deviceCode\":\"YM2220850015\"},{\"deviceCode\":\"YM2220850019\"},{\"deviceCode\":\"YM2220850018\"},{\"deviceCode\":\"YM2220850398\"},{\"deviceCode\":\"YM2220850206\"},{\"deviceCode\":\"YM222085000F\"},{\"deviceCode\":\"YM222085003C\"},{\"deviceCode\":\"YM2220850394\"},{\"deviceCode\":\"YM2220850389\"},{\"deviceCode\":\"YM2220850396\"},{\"deviceCode\":\"YM2220850390\"},{\"deviceCode\":\"YM2220850399\"},{\"deviceCode\":\"YM222085039F\"},{\"deviceCode\":\"YM2220850392\"},{\"deviceCode\":\"YM2220850393\"},{\"deviceCode\":\"YM2220850382\"},{\"deviceCode\":\"YM2220850364\"},{\"deviceCode\":\"YM2220850377\"},{\"deviceCode\":\"YM2220850370\"},{\"deviceCode\":\"YM2220850374\"},{\"deviceCode\":\"YM2220850372\"},{\"deviceCode\":\"YM2220850380\"},{\"deviceCode\":\"YM2220850375\"},{\"deviceCode\":\"YM2220850384\"},{\"deviceCode\":\"YM2220850381\"},{\"deviceCode\":\"YM2220850365\"},{\"deviceCode\":\"YM2220850376\"},{\"deviceCode\":\"YM2220850363\"}],\"linkageConfigRelateServiceParms\":[{\"deviceServiceList\":[{\"id\":\"bb178bf9ccda3db13f0714dddaed971b\",\"paramList\":[{\"id\":\"1e96cec9d7f0f60265530621bb778e95\",\"unit\":\"bool\",\"value\":\"1\"},{\"id\":\"66afbbd09c290a1b6d03c159d8054cc5\",\"unit\":\"enum\",\"value\":\"1\"},{\"id\":\"a5abaddfd1d585d02505bc0fee485fd1\",\"unit\":\"enum\",\"value\":\"1\"},{\"id\":\"b1cd3b90708404a3e5c37de17fe34db7\",\"unit\":\"double\",\"value\":\"26\"}]}],\"deviceUnitId\":\"58cdca90aa4e5e8e42d912c65c6d0f52\",\"groupNumber\":0}],\"type\":1}],\"ruleTriggers\":[{\"jobEntity\":{\"cronExpression\":\"0 0 9 * * ? *\",\"deleteState\":1,\"jobStatus\":\"0\"},\"type\":3}]}]";

        String aaa = CharCompressUtil.compressWrap(content);
        System.out.println("Snappy压缩后字符串长度为：" + aaa.length());
        System.out.println("Snappy压缩后字符串为：" + aaa);

        String bbb = CharCompressUtil.unCompressWrap(aaa);
        System.out.println("Snappy解压缩后字符串：" + bbb);

        if(bbb.equals(content)){
            System.out.println("Snappy解压后的字符串是一样的。。。。");
        }else{
            System.out.println("Snappy解压后的字符串不是一样的。。。。");
        }
    }

}
